I’m not an expert, but 6pm sounds super later. When I take my medicine late it totally messes up my sleep schedule. Also do you have a bed routine? I live by mine. Something like dinner, tv, shower, and then tv or something relaxing. If I do laundry or any kinda of activity before bed I can’t sleep.