Krita error when trying to use a custom thumnbail for a document template

I get this error when trying to create a template from the image with a custom picture for it

Clicking exit or abort causes krita to quit, ignoring repeats the pop up.

Im using 5.3.0 version of Krita and Windows 11