Regularly leaving your Xbox (One / Series X|S) on all night accelerates wear and costs money.
If you *must* leave it on (remote download, server host), ensure excellent ventilation and dust filters.