This can be minimized by trying to keep everything inside roughly in equilibrium while the pressure drops below ambient. Or a pressurized cooling system could be used in which the pressure cooker is pressurized above the vapor pressure using something other than water vapor (e.g. air, but an inert gas could be used, too), and then the contents can be cooled as fast as desired without risk of boiling or rupturing anything.
I've never heard of anything resembling the latter for home use. If I understand correctly, commercial canning operations will cool their jars under pressure while spraying the outside with disinfectant to minimize the risk of anything living getting in before the jars fully seal.
Anyway, they say that to "minimize busted beans" it's essential to brine them first, 1 lb of beans to 2 qts water with 1.5 tablespoons of salt. You can either soak overnight or bring to a boil and then let sit for 1 hour. They also say you always need to add a bit of oil while cooking, and to use the "natural" pressure release rather than quick release. And 8 cups water to 1 lb of beans. Beyond that, you'll have to determine the particular cook time for your kind of bean, but they seem to range from "turn off as soon as pressure is obtained" for black beans to "3 minutes at pressure" for pinto beans.
Hope that helps! I'm looking forward to seeing how my beans turn out following this. I haven't had great luck with pressure cookers in the past.
Have you tried adding cream of tartar to your brine for the beans? It's supposed to help with reducing how gassy you can get from beans.
Adding some salt to the cooking water (not the soaking water) will help keep the beans from turning to mush.
You will probably have to experiment to find out what works for your cooking equipment, beans, and water chemistry.
I assume a slow-cooker or stove-top method would remove some of the variables and make it easier to achieve a consistent result. I haven't manage to plan beans that far ahead in recent memory, so I can't confirm.
Sorry if this is obvious, but "blown up beans" pretty much universally means "overcooked". They probably would have been good if you'd cooked them less.
However, "hard" beans are trickier. It might just mean "undercooked", and you can give them another few mins in the pressure cooker, or it might mean that the beans are old/were not stored in a dry air-tight container.
So how to pressure cook good beans:
Start here for rough times: https://fastcooking.ca/pressure_cookers/cooking_times_pressu...
Cover beans with about 2-3x water. The goal is that once the beans have expanded there is no excess water. The excess is just diluting your seasoning.
prepare seasoning (in this example for something good in a burrito, w/ corn bread, or served with a braised pork shoulder): brown a lot of onions in a lot of oil. For 2 cups of dry black/pinto beans, something like 1 large onion and 1/4c of neutral oil. Add 1/2 head of chopped garlic to the mess after the onions are browned. Add another drizzle of oil and into it add ground chili (preferably a smoky one like morita), cumin, and black pepper just as you are turning off the heat. The effect of cooking spices a moment in oil is positive (see indian "tadka").
Add salt and seasoning* in with the uncooked beans. My rule of thumb is that the cooking water should taste decidedly salty - a bit saltier than you ultimately want the beans to taste, since the salt will disperse somewhat into the volume of the beans.
*Some people say don't salt or season until the beans are cooked, else your beans will stay tough.
This is definitively not true in the case of salt - in fact the opposite, salt is shown to help denature the protein in beans and decrease cooking time: https://scholar.google.com/scholar?hl=en&as_sdt=0,48&q=salt+...
It seems to be somewhat true in the case of the calcium leached from seasoning like onions and garlic, but, IMO with the pressure cooker it's not an issue in practice.
Also cooking in an alkaline solution can help denature tough, improperly stored, beans. So if you're having a rough go of it, you could try adding a tsp of baking soda to the pot.
Happy beaning!
Got to soak ahead of time. Now I never fail. I use a pressure cooker on the bigger beans. You just have to pay attention to the time/result and calibrate your cooker.
Microwave under clingfilm for 3-4 minutes
Serve over toast.
Its not that complicated right?