Had this bug, where after using the last shot of the bolt gun in a large room, all ammo was restored. Then no ammo was used when firing for roughly a minute or two.
Ranged suit with the ammo grabbing distance mod on 3 and only the starting mod on 1. Used the starting sword, grenates and the dropable barrier.
No idea how to reproduce this bug.