Just as an FYI, I also experience this issue when doing modest tasks like watching a youtube video on fullscreen. I also have seen these messages come up after suspend and the laptop not coming up (not sure if this is the culprit) and I wonder if my previous GPU problem also arose from this: Be aware with Framework 13, AMD and Fedora/Linux - #2 by mikeymop
I will try to assign more RAM.