Couldn’t find a solution to this problem, could you try Anki → Preferences → Scheduling → V3 Scheduler
Hopefully by using the v3 schedule it will avoid the v2 schedule error
if you use anki mobile, you will need to enable v3 schedule
on anki droid, v3 schedule is available on alpha builds
AnkiDroid 2.15 User Manual