If an electron moves closer to the nucleus in a given value of n, does it lose energy?
You are trying to apply macroscopic understanding to the world of quantum mechanics. This thinking is doomed to fail. The energy of an electron occupying a specific orbital is that orbital’s energy. Full stop. Unless it changes its orbital it does not change energy.