First thing you need is a check valve on the return to make sure it doesn't back siphon water from the tank into the sump. This can also be accomplished by drilling a little hole in the return just above the water line to allow air in to act as a siphon break. Be careful though, as water will flow out of this hole, so make sure it is directed into the tank.
Then you need to do some testing between the sump and the overflow. You need to make sure your sump tank has enough capacity to accept any water that will still drain through the overflow after a power failure. So you need to make sure you don't set the sump up so that it is at full capacity, you need to leave a few gallons of leeway.
What type of overflow are you using? If it is a siphon style, you also need to test to make sure that if the siphon fails, you have enough capacity left in the tank to accept any water that will still be sent up through the pump.
This can all take a little practice, but getting the hang of it isn't all that hard, and once you figure it out, just put little marks on the tank and sump for the proper water levels.