Strange issue, does it happen in every game besides Minecraft or just F1 23?
Try to uninstall your driver using DDU (Display Driver Uninstaller) keep in mind this is a 3rd party tool and not an official AMD tool. You have to boot your PC into safe mode to use it.
After using DDU to uninstall graphics driver, download & install the latest Radeon graphics driver and choose 'Clean Install' when it prompts you on the screen & follow the steps.
Try to see if that fixes it, if not then you could try other solutions like reseating your ram sticks, making sure your GPU/CPU are not overheating (check temperature)
Try to run a graphical benchmark program and see if that crashes as well.