Thanks for writing your query to us.
Avoid doing such type of over exertion again. The symptoms you had mentioned can be due to over sweating giving rise to dehydration
. Drink plenty of water & oral fluids. If you get such type of symptoms which are relieved after eating something than it could be due to lack of sugar.