This article shows you how to sign out of your Apple ID on a Mac, and gives advice on what to do if you can't click the box to sign out of your Apple ID.
How to Sign Out of Apple ID on iMac/Macbook – macOS Monterey
Whether you want to sign out of your Apple ID, either so you can switch to a different one or don’t want to be signed in at all, the process is pretty simple. Here’s where to look and what to do when signing out of your Apple ID on Mac.
Click the Apple logo in the upper left corner of the screen.
Click on System Preferences.