From https://assist.xbox.com/en-US/assist/hardware-network/console/xbox-series-x-faq :
How can I be sure that my Xbox Sequence X|S is well-ventilated?
As with all electronics, Xbox Sequence X|S consoles expel any warmth generated throughout use. The Xbox crew targeted on cooling Xbox Sequence X|S throughout growth and designed the Parallel Cooling Structure. In the event you detect some heat air emanating from the exhaust ports, this means that the system is working as supposed and consistent with our expectations.
To make sure your gadget is reaching optimum air movement, we suggest inserting the unit in an open space with none obstructions to the highest and again inlets and shops. In the event you’re inserting the gadget in an leisure set, we suggest inserting it in an unrestricted house (resembling a small cupboard), and never inserting it behind a closed door if potential.
For the standard, non-enclosed media leisure stand, guarantee no less than 1.5 inches (roughly 4 cm) of clearance from the highest of the console in both vertical or horizontal alignment. We suggest having 4-6 inches (roughly 10-15 cm) of clearance on all sides.