this is a serious situation this never happened to me but i believe that its a dream and it could be you are very tired and cant remeber what happened during the day or who's house you are at this event occured to me over 2 times and i realized what person was next to me in my living room watching television then when i wake up i get told about what happened while i was sleep but i participated in the event my mother always says its not to serious for me to start to trmble just relax and everything will most likely work itself out mentally
Hi, welcome to the forum, it is difficult to come to a particular diagnosis in your case and needs a detailed evaluation. Your symptoms are suggestive of Transient global amnesia (TGA); this is a clinical syndrome of reversible anterograde amnesia. Why this happens? The cause remains obscure. This can be associated with epileptic seizures. Hence, past history of seizures is important. As this has happened twice, we cannot say for sure. It can be due to incomplete sleep or prolonged sleep deprivation leading confusional state when you wake up.
If the symptoms persist then you can undergo EEG monitoring esp. during sleep.
This shouldn't be point of concern, relax. You can consult sleep specialist if the problem recurs. Take care and regards.