You are what we call "de-conditioned". It happens very, very rapidly after an illness or surgical procedure. Some physicians think of it as a form of anesthesia "jet lag". You need to do what you have been doing which is listening to your body. Exercise when you feel up to it and rest when you need to. It may take up to 6 weeks before you are back to your normal. Longer if your "normal" is insane.