Microsoft Forms recently got some new features that are helpful for teachers. One of those new features is the ability to set a time limit for completing a quiz once it has been started. This is different than the setting to automatically close a form at a given date and time. This new timed quiz option automatically closes a form based on how long it has been open on an individual viewer’s computer.
https://www.freetech4teachers.com/2022/10/how-to-create-timed-quiz-in-microsoft.html