I’ve created a schematic with a 40 pin connected on that uses labels to connect the pins. On one of the pins I made a typo so now there is nothing connected to that pin.
I can reproduce that. I agree, ERC should warn about a net connected to one pin only IMHO.
No settings involved here AFAIK.
Maybe log a bug in the bug tracker?