I did get some sleep eventually.
It seems this kind of nighttime pain and intermittent pain as I continue to heal might last for four months or so. And that makes sense, as it takes six months for the bone to fuse back over the cut parts.
I think it's fabulous that the bone is going to grow back over the places that were cut. It will grow back as strong as before.
I'm glad I chose the surgery.