Hi my friend,
This happens when the input image to AI Is too big for the selected value of VRAM limiter .
To resolve this issue you can use the Input Resolution widget, so you can downscale the image before passing to AI.
Another option is to modify Vram limiter option (default is 8 gb), if you have a GPU with more VRAM you can set the correct Number. For example if you have a GPU with 24Gb, you can enter 24 :)