No its not safe. It appears to be a physician prescription. You should get issues of stress and sleep discussed with a psychiatrist. You will be guided better. Alprazolam can get addictive, and is not recommended for symptoms you describe. You will do better with other medicines, please take it fr a day or so and visit a nearby psychiatrist instead.
Next Steps
Consult the right specialist.
Health Tips
Psychiatrist and psychologist can give you plenty options and give you better relief.