I am in shape and have been for years now

For some reason over the last few months, I have been getting dizzy, lightheaded and nauseous a few hours after the gym. Does anyone know what can cause this?