I encountered this issue when I trained my model on a MacBook Apple Silicon. I fixed it by switching to a Mac with Intel chip, and it works perfectly now.