Expanding bolts are not meant to be used in anything other than solid poured concrete. They will expand upon tightening and just crack the brics or concrete blocks that they were set into.
The only way to properly secure a cabinet, or anything else of substance for that matter, into brick or concrete blocks, is to use a chemically fixed bolt. Hilti Hit resin is the best (I'd argue the only product) to use. Hilti make all sorts of mesh sleeves (to be used on walls with bricks with holes in them) and also many different types of resin depending on the type of substrate that you intend to fix into. You may need to buy one of their applicator guns which are not that cheap at about £80 if you can't find a hire company that holds them, but that's a small price to pay considering what you are securing.
if you position the cabinet in place, screw in the top two holes using normal screws and rawel plugs, so that its hanging on them , then Chen fix the bottom two holes, let it cure, then take out the top two screws and drill and chem fix the top two points, you will have a well fastened cabinet. Once you have done that the only way to remove the cabinet by force would entail ripping the bricks out of the wall. If you wish to move it you can just take the cabinet down and then cut the bolts off bellow the surface of the wall using an angle grinder and fill in the holes with a bit of poly filler.
Kind regards, Olaf