Why is shared clipboard/drag and drop not working with a Windows guest on Ubuntu host?

I’m on Ubuntu 24.04.2 and using Virtualbox 7.0.16

I have installed VB Guest Additions and have enabled Bidirectional sharing for both clipboard and drag-n-drop. occasionally it works fine, but more often than not I cannot move files back and forth between guest and host (and vice versa). I cannot consistently replicate this error.

When using drag-n-drop, the cursor changes to a grabby hand with a “no” sign on it (not sure how to describe it but i can’t get a picture of it.)

Occasionally when going from guest to host I get the error message “Leaving VM Window Failed” but I never get an error message when going from host to guest. See attached picture.

Is there a log of some kind where I can find an error message? What could be causing this? Restarting the VM sometimes fixes it, but often doesn’t.

Virtualbox error message stating "Drag and drop operation from host to guest failed. DnD: Error: Leaving VM Window Failed (VERR_TIMEOUT). Result code VBOX_E_DND_ERROR (0X80BB001), component GuestDnDTargetWrap"