I use compatiblity mode (DirectX) to have a better in-game performance due to that my Laptop isn't so good, but that prevents me from screensharing on Discord, is there a way to fix it without switching to OpenGL?
I've also been having issues with Discord screenshare, could be a discord thing.
If not, common fixes could be checking your video drivers, reinstalling osu!, checking if DirectX is outdated. It could also be an OS issue, or even an internet or hardware issue.
Check what you can, apologies if none of these work or have been done already.