Theoretically the graphics card has 4gb. This has happened a couple times before. Not doing anything out of the ordinary. Windows and gfx card up to date.
4GB isn’t a whole lot to work with, what is your GPU?
gtx 1050. Honestly though, it doesn’t look like it actually ran out of memory according to the task manager and gpu-z.