Normally an overflow would have an inside box and an outside box (e.g, Eshopps Eclipse) which give you multiple drain configurations like Herbie and Bean-Animal that have emergency overflows, but there are also commercially available inside-only overflow boxes (e.g., CPR Aquatics). Of course there are DIY variations to both of these. One of the challenges is getting the weir teeth width and height correct. I literally have "been there, done that" on all of the above and plenty more (both commercial and DIY) and they all have there place although the DIY options often take some extra TLC and tweaking over time. Another lost cost option that I have used in utility tanks is to drill the tank, add a bulkhead, and then add PVC 90 facing upward with some plastic screen around it to keep livestock from going down the overflow. Good luck with whatever you choose!