There isn’t typically a concern with leaving self tanner on overnight, considering that it is a leave-on product and is designed to sit on your skin for long periods of time. Self-tanner is much safer than tanning beds or direct sun exposure because they do not expose your skin to harmful UV radiation, which is the main cause of skin cancer, premature aging, and sun damage to your skin. Self tanners use ingredients like DHA or erythrulose that react with amino acids on the skin’s surface to create a temporary “fake” tan. These ingredients can create something called “free radicals”, which are unstable molecules that form when your body is exposed to sunlight or certain chemicals. When they become unstable, it causes oxidative stress, which can damage your skin’s collagen and elastin, which can lead to wrinkles, sagging and premature aging. Self tanner still can create some free radicals, but they are mostly in the outer, dead layers of skin, making them much less harmful than the UV damage caused by tanning beds or real sun. The bigger concern to your body is inhaling spray tans, which can cause cell damage or asthma over time, so wearing a mask when you get a spray tan is highly recommended.
https://www.consumerreports.org/health/is-self-tanner-safe-a3329623598/
https://evolutiondermatology.com/are-self-tanners-ever-safe/