Hello, so tonight I have had a very weird Lucid Nightmare. I've never had this before and I really don't know how it happened. So I'd like mostly advice on how to handle this next time (if ever) or some explanations on why it happened.

The dream started out as I was in a restaurant with 2 friends, we wanted to eat a sandwich but there wasn't any in the resto so we decided to go out. I went to take a piss and I picked up my stuff and went out the door too. I began searching for my friends outside the resto but didn't find them. I remember there were at least 3 group of people whom I've never seen in my life, wave in my direction as if they knew me. Then I realized I was dreaming. Somehow very quickly it transformed into nightmare. I must add that the whole setting of the dream from this point to finish was nightmarish and dark.
I maybe have thought inconsciously, even though of course I didn't want to; but somehow a 'demon' like figure appeared. But as I knew I controlled the dream I really wasn't afraid so I went up to him and blasted him off with a fireball from my hands. It disappeared but I was thinking to myself that he didn't die. Then I continued and a little time after I saw an old man. It seems I've already seen him (never in real life though) and went up to him. He picked me up to give me a hug. Then I thought, just for a second, what if this is the demon and I let him pick me up (how stupid of me to think that...) and of course it transformed into another negative entity, so I killed it. But then...

The dream continues and somehow I'm in a very very dark forest. I remember I was still lucid dreaming so I said aloud : let there be day ! (to have sun light through the forest). But nothing happened, I even visualised it but nothing happened. I then saw a little fox-like demon near a dark tree. I went up to him, thinking he caused this, I picked a sword made of light and prepared to hack him - I knew it was a negative creature, and this was my dream and I was conscious I could do whatever I wanted.
So I went through him with the sword but he disappeared. Then I stopped lucid dreaming and dreamt of something else I don't remember.

Then a very strange thing happened.
I woke up (but as you'll find out it was another dream) and I was feeling very uneasy, I was crying and I really felt like the demon from the other lucid dream had defeated me. Very strange! I found out that lots of blood was pouring from my nose and then from my mouth, and I felt as if it was still there somewhere, victorious. The blood was practically everywhere on my face. I went downstairs and found my mom sitting in a bar and she acted like it wasn't a big deal, that made me realise it was a dream (she would never act like this), and then I made myself woke up.

This was a very freaky experience and I have no idea why or how I had this, but in the future I don't want to have these and I'd like to have some advice on what to do next time or what you think about it. Moreover, it's easy to say 'don't think about a certain thing while dreaming', but as soon as you think of it even inconsciously, it can appear. Also, it seems to me very weird that I could not imagine it to be day - in a lucid dream. It is like I couldn't completely control my dream, and I was conscious.
Ty for reading!