Leftover folder and initramfs.img in /lib/modules

I have two kernel folders in /lib/modules:
  • 6.13.4-200
  • 6.13.5-102
    The 6.13.4 only has initramfs.img inside, so it is not a full folder, compared to 6.13.5.
The issue is that I cannot install RPM containing akmod, because the install script iterates over /lib/modules, finds 2 folders and assumes that it needs to build for 6.13.4. But that folder is practically empty and the script fails. I checked that the installation works correctly in pure Silverblue because there is only one folder.
So, why is there a leftover folder and file in /lib/modules and can I do anything about it?
Was this page helpful?