As a past user of Screen2Gif I can say on Windows ShareX does a very good job of screen capture and recording.
sharex only provides a MITM utility for ffmpeg, any issue is likely to come from either GDIGrab, or the linked screen-capture-recorder utilites (which are provided within sharex as an optional download)