Does this happen to anyone else?

Mill
I'm a little scared because I'm not sure what it could be I'm also 8 months pregnant.. Every once in a while out of no where I get this weird flashes of light in my vision and I have to stop everything I'm doing because I can't see anything. What could cause this and how do I prevent it?