Spent hours trying to debug this memory leak, just to fail again and again. Finally, decided to read the docs of all libraries used and the first one itself says:
Lesson learned: thoroughly read the docs and source of your dependencies. Or at least skim them once.
If you have a fediverse account, you can quote this note from your own instance. Search https://fantastic.earth/users/abnv/statuses/110027836955364363 on your instance and quote it. (Note that quoting is not supported in Mastodon.)
