move the camera between the player and the mouse

Like this maybe, I tested it very briefly, seems to work ok. You will need some kind of interpolation here, or at least camera lag set to something lowish - 5 or thereabout:

6840c7c4b45f40c9d1e9ed6131b760bca3904380.jpeg
https://forums.unrealengine.com/core/image/gif;base64

edit:

I assumed you want to restrict camera movement rather than mouse cursor movement as this would be annoying for the end user.