While working in KiCad, I encountered the following error message:

this pops up during normal editing in PCB layout mode. It seems like KiCad is trying to delete a temp file, but something else is locking it.
Has anyone else experienced this?
Any idea what might be causing this, or how to prevent it?