Thanks for the info! My current laptop is T14s Gen 3 which I find perfect, but the screen size is a big insufficient for programming. I will be looking for a 16" laptop and currently there aren't that many options with a centred keyboard.
The launch video for this new Framework Laptop 16 mentioned firmware improvements to disable wake on keypress when the laptop's screen is closed, specifically to prevent the type of situation you mentioned. I've personally experienced similar issues with an XPS 15 in the past; I'm hopeful this type of change will help.
Outside of Apple, there doesn't seem to be many good fanless laptops. I'd love to see Framework come up with something.