ERROR FAILURE BROKEN - Database upgraded without my knowledge!

I did not provoke or schedule any upgrades, however, this morning, I navigated to my "on-premise"Matomo to discover this:

Your Matomo codebase is running the old version 5.1.0 and we have detected that your Matomo Database has already been upgraded to the newer version 5.1.1. Maybe your Matomo administrators are currently finishing the upgrade process. Please try again in a few minutes. If you still have this issue please contact your Matomo administrator for assistance.

All navigation links and menu items re-directs here to this error.
I was thinking of taking the new release, “Matomo 5.1.2”, and have it overwrite all existing files and folders, but thought better of it and decided to see if there is a safer and data saving way to fix this issue.

Any help would be tip appreciated.
Thanks in advance,
RB

this is a screenshot of the error below

You can download Matomo 5.1.1 (https://builds.matomo.org/matomo-5.1.0.zip) and overwrite the existing 5.1.0 files (backup the old files before replacing them just in case).

(I don’t recommend trying to roll your DB back to 5.1.0 since you don’t seem to know how it ended being 5.1.1. if you absolutely want to stay with 5.1.0 over 5.1.1, you could try to set version_core to 5.1.0 in your DB so your file and DB versions match (SQL: UPDATE matomo_option SET option_value = '5.1.0' WHERE option_name = 'version_core'; ). that will not undo any DB changes that might have been applied for 5.1.1., but it might still work.)