There are a few things you can do to stop your Xbox from going into idle mode. One is to make sure that your console is properly ventilated. If it's overheating, it will go into idle mode to protect itself. You can also try disabling the energy-saving features on your Xbox. To do this, go to Settings > System > Power & startup > Power mode & startup.