Its pretty normal to feel how you felt because weed can make you lightheaded and nauseated, i've felt like that a lot of times mostly when i just smoked too much or the shit was really good but yeah if you can realize its the weed you can usually grab control of it.