I would try a complete factory reset to solve the problem, because it is not a hardware issue causing the flickering, it's the software because it's flashing back to the homescreen not just flashing black like it would if there was a hardware problem. If that doesn't help go to your carrier or contact Samsung Support.