A memory leak is possible of course. But it could also be a endless loop loading more and more stuff.
See if you can cause that error again and file a bug ticket.
I never encountered this, but it has been ages since I played the turorial.
And of course there are the very rare, but not impossible events of cosmic particles changing single bits in the memory of our computers (I am very serious about this, no joke).
Looks like it's linked to a memory leak yes... even if I don't understand what the Surface thing is about :
D:\...\PhotoHunt-0.15.1a-pc\renpy\display\pgrender.py:118: UserWarning: Memory leak via Surface in pygame_sdl2.
surf = Surface((width + 4, height + 4), 0, sample)
There's some chances that this problem is related to my GC also, never got this kind of problems before, now I must force the ANGLE renderer with the Shift+G options because the Open GL ones causes glitches at the top of the screen, and that for all renpy games! But I get Out of Memory errors only for this one (and very often if I use the computer or the phone too much).
I have theses artefacts/glitches with some AAA games too. Waiting (impatiently) for new drivers... That was the first and last time that I will buy a new GC at day one.
Now, to file a bug ticket... excuse me but, where? For the game dev, or the renpy engine team?
Or (another one) for the card manufacturer...? lol