Welcome to HCM Forum,
I can understand how frustrated u might be feeling due to sleeplessness
and concern about having panic.
You not mentioned what trouble u had so doctor prescribed sleeping pills.
Assuming that u continuously having sleeplessness and episodes of panic ( characterized by palpitation
,breathlessness,coldness-trembling extremities,impending doom )and continue concern that you might have these episodes again and again is feature of "Panic Disorder".
This is very common disorder occurs due to certain neurochemical changes in brain and completely treatable.It requires prolonged treatment.only sleeping pills are not a solution for this disorder.
If you not consulted to psychiatrist
yet please consult to nearest psychiatrist in person.after thorough evaluation he will treat your illness appropriately.
Hope it helps.Best regards.