I've had it happen twice in 50 years of diving. Of courese for the first 28 years I never used a BCD, only a backpack (not backplate). First, prior to your dive make sure the tank bands are cinched down properly... prevention is worth a pound of cure (or however that saying goes). One of my incidents was due to a cam band cinch that had trapped the end of the tank belt underneath it and came loose. If I had caught it topside it wouldn't have become an issue.
Two, your buddy should be close enough to render assistance. Since they have far greater visual access to the situation, they can resolve it quickly (I dive solo so that is rarely an option for me, hence my focus on prevention).
Three, If there is no one to assist you, and depending on depth and water conditions, you should be able to remove the BCD and tank while breathing off the reg and remount the tank to the BCD, then don it again. This was a skill taught in my open water course many decades ago but I don't know if it is still being taught these days. I think it should be.
The other time it happened to me I was solo on a deep dive. I was easily able to slowly swim the rig up to where another diver could assist me.
Two, your buddy should be close enough to render assistance. Since they have far greater visual access to the situation, they can resolve it quickly (I dive solo so that is rarely an option for me, hence my focus on prevention).
Three, If there is no one to assist you, and depending on depth and water conditions, you should be able to remove the BCD and tank while breathing off the reg and remount the tank to the BCD, then don it again. This was a skill taught in my open water course many decades ago but I don't know if it is still being taught these days. I think it should be.
The other time it happened to me I was solo on a deep dive. I was easily able to slowly swim the rig up to where another diver could assist me.