Try going to Settings > Device Care > click on the three dots and select advanced > Now check if the optimise settings is toggled on. Turn it off and set your timeout again. See if that does it.
Have you tried a force resart?
Press and hold the Power and Volume down buttons at the same time for at least seven seconds.
Your Galaxy S20 will now restart