I finally got around this annoying issue and could get my project packaged!
I just used thr project launcher to package, instead of packaging directly for Windows.
I followed this tutorial: https://youtu.be/XAtOXmyqq18?si=WwTH3r2kThGsT8iR
I hope this helps anyone else with similar issues.