It may be temporary cerebral blood supply insufficiency and low blood pressure. Blood can't reach the brain, and the oxygen concentration of red blood cells drops, causing dizziness and fatigue.
Suggestion:
Do warm-up exercises first when exercising, and pay attention to whether you are unwell during exercise.
Don't exercise when it is serious. Go to the hospital for examination.