because your ERC conditions are met in the schematic given to you.
This error is rectified in the recent code file and installer.
If you are using older installer, you need to change pin type. If we connect a pwr_flag, it will give severity error as the emitter and collector are open emitter and open collector pin type. This means we need to connect a resistor that acts as a pull down.