All perfect praise be to Allaah, The Lord of the worlds. I testify that there is none worthy of worship except Allaah and that Muhammad,
, is His slave and Messenger.
Performing ghusl in the circumstances that you mentioned is valid, and dizziness does not affect its validity.
Allaah knows best.