The Castle Doctrine still requires someone to be reasonable. Assuming he isn’t full of shit, he knew his girlfriend wasn’t in bed with him. He went to bed with her. It is completely unreasonable to shoot at an unknown person behind a door when it could very well be your girlfriend.