There is usually a block of wood with a hole cut in it the size of the hole in the bottom cab under the metal plate. This spaces the toggle switch into the cabinet a bit so it doesn’t get crushed by pin lifts or hand trucks.
If you don’t care how it looks and just want it functional, you could cut a block of wood to the size of a blank electrical plate. Trace the hole that’s in the cab bottom onto the center of the block of wood and cut it out. Drill a hole in the metal plate for the toggle switch. Mount with 4 screws. All parts available at your local home center.
https://www.homedepot.com/p/RACO-Electrical-Square-Flat-Blank-Cover-8752/100542712#overlay
https://www.homedepot.com/p/Gardner-Bender-8-Amp-Single-Pole-Toggle-Switch-1-Pack-GSW-18/100141285