My cardio is extremely bad I almost fainted during sparring

I'm new to this, been in it for 3 months. Recently I just did some drills then one sparring that lasted for a bit, I don't remember but I think only 3 min or so.

Afterwards I was breathing so strongly and fast to catch my breath I was sooo tired I had to lay on the ground for like 20 mins straight and felt like I need to faint.

This happens every time I sparr but this time this was the worse by far.