Hey sorewahimitsudesu, welcome!

It's common to become panic and wake up after obtaining lucid (it happens to me too ) But it's happening to me less now because I've learned to calm myself and focus on my environment. I also hear that spining in a circle to change the dream scene helps as well.