Can I masturbate even though I was hospitalized for a high heart rate? 28F

Last week I was in the hospital for about 4 hours because I had a high heart rate, dizziness, nausea, fever, and my body was shaking. When I first got to the hospital, heart rate was 136-140 but after a few minutes, but heart rate became 99 while lying down and 110-120 while sitting. I had blood tests, chest x ray, ekg, and flu and Covid tests. All tests were normal and I had negative flu and Covid test. I was told I probably had flu or some kind of virus (even though I tested negative for flu) and I may have been dehydrated (even though I had normal electrolyte levels).

I now have heart rate of 85-96 while sitting, and I feel normal during the day but I do feel dizzy and nauseous for a couple hours during the evening. I was wondering if I masturbate, will it be dangerous?