Can be reproduced by adding two sounds, then selecting and deleting the first one. Should be an easy fix if you want to give it a try. Looks like the sound preview ID is not being updated correctly when deleting a sound if there are multiple sounds.
I turned off switch weapon on pickup in settings and I still continue switching weapon on pickup. Update: It seems the setting change only started once I picked up any other weapon. I was getting the same weapon from the start of the map where it wasn't working(edited)