Most “muscle loss” is fat and water within the muscle. Not the muscle itself. You could supplement with EAAs which would be anti-catabolic. Not sure you can fast and supplement without losing muscle while working out fasted because breaking down muscle makes it easier for the body to use in place of fat. You can absolutely fast and maintain though.