Dizziness can have many causes, and since it is self diagnosed there might not even be a problem. But you might be right, because with a panic attack you can get disoriented and not be able to focus. Perhaps doc can come up with the answer.
Dizziness and disorientation are two very common symptoms of anxiety attacks. Now, it could be something else. A thorough exam with your GP is a great idea, but be wary if the tests come out negative, which they usually do, of having your GP then treat you for anxiety. They'll give you a drug they know little about and that will be that. If it does seem to be anxiety, skip the prescription for now and find a psychologist who specializes in anxiety treatment. This is especially true for you, because this isn't a chronic thing, this is something you know the origin of. I'm older than you are, but when we get older losing a job can be incredibly stressful. When you're young you know you're going to bounce back, but when you're older, it's much harder. I'm guessing the anxiety you're having now, if it is that, is being caused by you getting used to being nervous when you lost that job and the insecurity it caused. Seeing a therapist, again assuming your symptoms are of anxiety, will help you prevent this from becoming a chronic way of thinking. I'm guessing, if anxiety wasn't a problem for you until this happened, you're probably going to overcome this with some help and things getting back to normal.
While it's good to check with your doctor, this is a very common symptom of anxiety. I discovered that the cause of this for me is very shallow breathing which comes on unconsciously due to anxiety.
Next time you feel dizzy, stop what you're doing and perform a breathing exercise for three minutes. Breathe in through your nose for four seconds, hold your breath for four, breathe out for four, and wait for four more before repeating the whole 16-second cycle again. If you feel significantly less dizzy after the three minutes are up, problem solved! (If not, it's probably still anxiety causing your issue so don't freak out: You'll just need to find another way to address it.)
Poor sleep is also a major, major source of anxiety. Do the best you can to get the rest you need. Activities to help you wind down in the evening like reading a book or taking a relaxing bath are a great idea.