That’s odd. You could download Matomo (the same version you have installed) unzip the archive and replace just that one file via FTP. I would make a backup copy of that file first though.
Yes, what a great idea!
It is not the way that I installed Matomo, so the obvious was not at all apparent.
My Matomo ship now sails, however lumberly, without complaint.