Valid block on top of invalid block
Any blocks built on top of an invalid block are also invalid. If a chain with more work overtakes the one with the invalid block on it, the block on top is still invalid and is ignored by all other nodes.