My recommendation is to talk with your doctor and to listen to your body here. If your heart is racing, it is not a good idea to Exercise. I capitalized the “E” because too many of us think that we have to work up a sweat for an hour or so to really be exercising. But that doesn’t necessarily mean that you couldn’t start out taking some leisurely walks if you felt like it. Or something similar. Start out slowly, and test yourself out. You do not want to exhaust yourself with exercise, you want to feel energized with it. So do what you can, as you can, paying attention to how you feel before, during and after. You can lengthen the time, and increase the effort as you feel yourself regaining health and strength.
Wishing you good luck,
Bobbi