Need help with preserving our association's memories (MediaWiki 1.31.0 to text files)

https://preview.redd.it/ei2wvhp0prke1.png?width=1560&format=png&auto=webp&s=88a48d804ab9cfe2732753b079654b62c483a435

Hey there! I rarely beg for help, but I have been struggling for days and you're probably the only one who can help me at this point.

I'm a non technical guy who simply wants to archive our student association's wiki. We used it from 2006 to 2022, but it's no longer maintained and I want to export it to text files before it's lost forever.

What I have:
- MediaWiki 1.31.0 - 1600 pages with images.
- Direct access to server and Cpanel
- Windows 10

What I want:
- Text files that I can organize in folders by year, without a database
- Preferably Markdown format with images on pages that have them
(I want to keep this archive indefinitely without too much maintenance, possibly building a Hugo site)

Things I have tried:
- Exporting all pages to XML (which had some errors) and then using various scripts,
- Downloading SQL files directly from server, thinking I could convert via Pandoc
- Saving to static HTML files with HTTrack, so I could convert them later
- All the scripts I could find to convert to MkDocs, DokuWiki, Markdown....

Apologies for having no clue what I'm doing, stabbing in the dark with ChatGPT. Thanks for any suggestions or help!