You can try raising or lowering your pool’s water level to help Betta avoid the overhang. Another option is to attach a small foam noodle to the front of the unit to act as a bumper, which helps prevent it from getting wedged under the lip.