Try downloading the installer, run it and then when it asks where to install click the updater to change the install location and browse to your osu! installation. It should fix this error which occurred on previous versions of osu! (prior to 20221011.3)