Hi @Aayushi_Agarwal, I moved your post to its own topic since it is a distinct question and calls for its own thread. If you can tell us more about this, it will help us in answering your question here. Are you seeing any particular error message, or what exactly happens when you reboot?
Also, are you using an Apple M1 ARM-based processor? Duo Authentication for macOS does not currently support those systems. See the note in our documentation here: Two-Factor Authentication for macOS | Duo Security