Hi and welcome to Healthcare magic.Thank you for the query.
I dont think that these 2 can be related but the first thing to check is your hear and lung function. This also cen ba caused by anxiety
and psichosomatic disoreder. YOu should take some anxiolytics and see will it be helpful.
Wish you good health. Regards