I got this error when I was trying to Import Image File to Layer, but the layer happened to be inside a layer group, when I moved to outside the layer group it worked ok. However when this error was thrown the whole program crashed. Can be replicated each time if that helps.

Windows 10 Version 10.0.19041 Build 19041
ArtRage version 6.1.2