This issue has been discussed at length in the following bug report to SDL (which also wasn't responsible for the issue).
https://github.com/libsdl-org/SDL/issues/14874
There, the issue has been attributed to drm/amdgpu. There have been several memory leaks in amdgpu that have been fixed in ...