I am not a doctor and this is something to ask a doctor about, but Amitriptiline has been great for improving my sleep (as a side effect of the main reason) but it is also mild in terms of side effects (mood, next day drowsiness are minimal)
and generically available too. YMMV of course.