Managed to fix my problem by reverting the migrations manualy with sql.
For anyone doing the same mistake, after you set the plugin to the right commit, execute this : rake db:migrate:status
this will show you lines without files : up 20240809163303 ********** NO FILE **********
for each of them find the associated migration file on the plugin github (try to search on the whole discourse org so it’s faster)
then if there’s no down option, just remove it from sql : delete from schema_migrations where version = '........'; and rollback it manualy with sql