Thanks for writing your query..
It seems that you had an episode of unconsciousness
due to vaso-vagal attack.
It may be associated with nausea or vomitting.
You should get your blood pressure monitored along with blood sugar level investigated.
You should get your head scanned to rule out other causes of fainting
You can wait for some time for relief of pain and nausea. You can take pain killer like Ibuprofen
one tablet twice a day after meals along with an antacid for pain.
Nausea can be treated by taking one tablet of Domperidone
You should avoid stress by positive approach towards life.
and yoga will help in relieving from anxiety and stress.
I hope this is helpful to you.