Hi Snakey2310,
welcome to the Apple. (user-to-user) Community!
Re: "when using voice over my screen sometimes stops working : it does not register my touch along the far right hand side of the phone, even if the screen and voice over is working".
You may want to check if there is an iOS17 software update waiting to be installed on your iPhone:
You can check in Settings > General > Software updates.
(NB: If so, It is always wise to back-up the data on your iPhone before installing the update.)
If your iPhone is up-to-date with the latest version (iOS 17.6.1) About iOS 17 Updates - Apple Support
wondering whether the screen works well in all other apps,
or
if there may be an issue with the touch screen, or with voice over, or with your hardware, or software.
___________________________
Re: "What can I do to fix this?"
There's another discussion thread where a Community Specialist provides answers to someone with a similar situation to yours. You may want to try testing your screen with other apps in the same way.
Touch not working near screen edges - Apple Community
All the best :-)