Well the simple answer would be to avoid taking sleeping pills if they are making you anxious. Sleeping pills should be taken only when you are not able to sleep and suffering from chronic sleep disorders. Otherwise, try herbal remedies to get sleep, they relax your body and do not have nay kind of side effects to your body.
Other people asked questions on similar topics, check out the answers they received:
Other people asked questions on various topics, and are still waiting for answer. Would be great if you can take a sec and answer them