The most likely way to resolve this is to create a [commercial] version of ChatGPT that allows teachers and lecturers (or institutions) to use this AI in the process of making exams and adding anticheat capabilities.