Can't you change your bed, can you? It seems that it's one of the sources of your problem and making it more comfortable will definetely help you.
Also if you have never faced such problemwith insomnia, I recommend to try to treat it naturally firstly, it's very helpful for many people.
You can use such natural ways for this:
- try to create a regular sleep schedule (you'll need the same wake-up time and bedtime)
- start to make physical exercises regurarly (that'll help to reduce your general level of stress and increase your chances to sleep faster, also you can add special relaxing exercises like yoga before your bedtime too)
- take a warm bath or shower before the bedtime (it helps to relax greatly)
- stop drinking much coffee during the day and especially in the evenings
- don't eat before your bedtime (it's much harder to sleep with a full stomach, stop eating at least before 3 hours of your bedtime)
- turn of all devices for the time of your sleeping
If the situation won't change after a couple of weeks, than it'll be the time for consulting with a doc. For example, insomnia can be caused not only with stress but also with various illnesses and hormonal imbalance
https://www.hgha.com/symptoms-of-low-testosterone/, and maybe you'll need professional medical treatment for overcoming it.