Dear ,sir, its very difficult to comment .
But definitely u should consult doctor immediately
There are three possibility , first may be heart problem , because of that syncope ,may be because of brain problem ,may be because of
sugar problem ,low suger level possibility ,u didn't mentioned your illness like bp or sugar ,many more reasons
Whichever the problem ,its a not good so need to evaluated clinically need of observation ,so consult doctor
Next Steps
consult any general physician immediately