This happened to a friend of mine in classes at the gym. Turns out she wasn't breathing during the exercises. Without realizing it, she was holding her breath. Be sure you are inhaling when flat and exhale as you raise up, when doing ab work. Once she started focusing on her breathing and making certain she was breathing properly, the nauseous feeling went away.