A sachet of Movicol daily should prevent any impacted stools, which is I think what you’re talking about jj.
Movicol is a stool softener so you can take it for a long time without it affecting the natural movement of your bowels, which some laxatives do.
We have a relative who is a nurse and is an expert on constipation and pain relief as the two often go together.
If it was me, I’d take a take a sachet of it daily for a good few months until things rectify themselves.