My first inclination is to assume that a lens error is the intermittent problem itself, but first, there is a more likely possibility, lack of sufficient power. Remove the battery, check the pins or connectors in the battery compartment, and make sure that they are positioned correctly to contact the battery. Then use a q-tip with alcohol to clean and dry them.
It is also a known issue that digital cameras circuitry can also become much more sensitive to the lower power level produced, so if you have been using the same rechargeable batteries for the life of the camera (more than 3-4 years, yours at least 7-8), then the power capacity of the battery may not be high enough anymore to handle the increased load. A new battery may be the answer, but cleaning the terminals may get you through the day. If not, please continue.
The problem appears to be a lens error. It may be misaligned or an internal component has failed. Here are a couple of links to some other things to try. With newer cameras I am usually hesitant to suggest these options since they include some more extreme procedures that may cause further damage if not done correctly, but since yours is an older unit, they may save you an expensive repair bill. A Canon camera is used to demonstrate these procedures so, the lens structure of these compact cameras is the same so the examples do apply to this unit. These procedures are effective about 60% of the time. Click on or copy and paste the links into your browser.
If the "do it yourself" approach doesn't work out for you and you need conventional repair you can get an online estimate at the link below and please see the note below
Note: Considering the age and present value of this camera, paying the cost of having it repaired , approximately $115 really depends on how attached to the camera you are. The standard "rule of thumb" is if the repair cost is greater than 50% of the value of the camera, it is not worth it. A used Stylus 710 can be purchased for about $15-$45 and I have seen a factory reconditioned one (with warranty) for $80.
Please keep in mind that my diagnosis & solutions provided are directly dependent on the accuracy of your description of the problem. As with any "do it yourself" fixes, success is a "team effort", since I can't see or touch the camera, and relies on the customer's manual dexterity and ability to follow the instructions well.
If you require additional information, please use the Reply to Expert Tab to contact me. Click the ratings only after our exchange is complete and you are satisfied.
If you are satisfied that my answer is accurate, please do not forget to rate my answer OK, Good or Excellent.