The recently launched MacBook Air with the Apple M3 processor performance slows down significantly if pushed too hard when in clamshell mode (with the lid closed). Thermal throttling is the culprit.
That said, the problem mostly shows up when using Apple’s consumer-grade notebook for tasks it’s not designed to handle.