Laptop shuts off when stacking on identical laptop

Solution 1:

Wild guess, magnets in the lid tell it when it's closed.

Placing another identical machine in line above will likely trigger the sensors in the same way.

Potential fix is stack each one the other way round, 180° horizontally, or just don't stack them.