iPhone 7 gray screen issue

I have iPhone 7 it freezes in apps once in a while with gray screen only way to fix it according to Apple Store is to restart phone and diagnostic passed on Apple Store end.

Restore as new helps it a little.
Which apps does this typically occur? It's possible that the apps are the problem and not necessarily the iPhone.
iMessage , Facebook and the camera app

Original thread: https://forums.imore.com/threads/iphone-7-gray-screen-issue.388316/