I'm very sorry that you lost your brother. Losing a family member is always a sad thing, but if it's causing you to have nightmares and lose sleep you should try talking to someone. If this has been going on for a long time you might have depression that won't get better by just 'dealing with it'. I'd suggest you find someone you feel comfortable talking to about it in person: maybe a friend, or family member, or a therapist. But get some help - depression makes everything seem worse than it is, and if you can get on top of how you feel, not only will you feel better, but it'll probably help your job search too.
Good luck - and don't feel alone. A lot of us have been through these same kinds of things and know it does get better, even though it kinda sucks right now.