If you get one prescribed by your doctor your Orthotist will typically dispense something like this one:
I haven't had any complaints about it falling off yet but if the pain on the side of your foot continues to bother you I would consider trying a type of Strassburg sock, a lot of people do have success with them.