I have a few suggestions, although all the things BearcatBethie listed sound like they would be worth a try. I have been following a bit different path. In some of the info my surgeon provided they briefly mentioned the possibility of taking gabapentin. My surgeon sort of dismissed it and did not prescribe it but I looked it up. It seems it is prescribed to reduce the amount of opiates required for pain relief. I took gabapentin for a year or so when my toes went numb. I had no side effects but I stopped with about 45 days of the prescription left. (it didn't do that much for my numb toes). I had TKR on one knee Thankgiving 2021. I started having severe sharp pains in my calves and knee about week 3. My surgeon had warned me I would have them and that it was normal. Normal, ok, but still hard to sleep. I started doing a couple things: 1) taking gabapentin daily, 2) using magnesium sulfate foaming muscle pain ointment before bed (and again midnight), and 3) alternating with generic aspercreme lotion with lidocane. My skin was also hyper sensitive and irritated. The lidocane helps with that but I also found some supersoft long legged jammie bottoms that I wear alternately with sleeping either on satin sheets or in satin jammies. All this has made it more comfortable to sleep without those stabbing sharp pains (I wonder if not all of it is nerve pain as the surgeon suggested - nerves are waking up, he said. It must be also that part is muscle spasms/cramps or the magnesium sulfate would not be effective). All this has made a world of difference but now I am thinking I may try BearcatBethie's remedy of using rough things on my skin for a week and see how that works for the skin sensitivity.
Also I have to comment that I started Physical Therapy one week after surgery and showed up with my walker. My PT had me ditch that and use one trekking stick for balance for a couple sessions and then told me just to carry it "just in case" and not actually use it. He wanted me finding my balance quickly. He was right. I quit using anything within the first 2 weeks of therapy. I am at week 8, walking a mile a day and working in the garden, sitting and pulling weeds, etc. Yes, I have that tightness like a band across my knee and it hurts at night at times. Getting up and walking 10 minutes, applying lidocane, and I am able to sleep for 4 hours again. I be sure to rest well every other day. As my PT told me, part of building muscle is rest. You work hard one day and allow all those muscles to rest well the next day, then do it again. Muscles don't build if they don't also get rest periods of about a day.
Good luck, I will keep watching your posts.