Set alarm every 2 hour display on (Mac)
if you have macOS Catalina, in Reminders App, you can create a reminder that alerts you every 2 hours, for example.  

for another, you have free apps in Mac AppStore like for https://apps.apple.com/us/app/time-out-break-reminders/id402592703?mt=12