Your sump will never overflow if it is setup correctly. I currently run a 200 gallon tank with a 30 gallon sump, overflows are typically the bain of sump users that use a HOB syphon style overflow/sump design. You have a pre-drilled design.
You need to extend the pvc fitting via a weir or other devices up the tank so the water can only flow into the sump at a point just below the water line of the display tank. Most of the time this is done via a chamber inside the tank with slotted holes just below the water line, but it appears that you have a tank that was not set-up originally for a sump, but was then later drilled out to accept one.
Once you have extended the pvc line up the back of the tank just below the anticipated water line, you fill the tank until the water begins to enter the overflow point, carefully watching the volume of water in the sump. Once the level of the water in the sump is were you want it, you stop adding water. if you lose power, the water will stop entering the sump once it is below were it can enter the pvc/weir. As long as your sump has the capacity to hold this volume of water, your never going to have an issue.
You want you water flow into the sump to be greater than the water that your return pump can put back into the tank, otherwise you will be running the pump dry and burn it up. It is also better to have about 1/3 of your bio-media submersed, in case you have a power outage and your bio-media drys out, otherwise you might lose all of it and be forced to re-cycle your tank.
Your design that you want to copy is just ok. Better designs utilize filter socks prior to hitting the bio-balls for an effective pre-filter. Filter socks are cheap and can be used over and over after a carefull rinse and can be purchased down to sizes of 5 microns (or smaller).
There area few drawbacks to sumps. The first is they can be incredible nitrate factories. Second is typically the draw the water only from the very top of the water column, so debris that has settled does not get filtered. This is were a second canister would be helpfull, or at a minimum a powerhead to help keep the debris suspended until it can get pulled down the overflow tube.......
If you are going to run a UV, the best place would be inline on the return line of the sump pump.