Problem in opening applications When i restart my mobile Samsung j5 2016  Or  shutdown so when i switch on my mobile. It start like from begning like when we by new phone . All that app doesnt work before restarting or before switching off i have. Please help me
Such an error can occur because of several different reasons and all these reasons come into existence due to one reason:

System or CPU failed to handle that app properly.

Messenger is a heavy application that will use a huge portion of your RAM and CPU while running and sometimes, to run system apps, the phone has to abandon these processes. That is why your apps keeps stopping (also, you are using a Samsung phone, so the UI uses more memory then the standard Android UI).

For a better experience, you have to keep your device clean by installing a cleaner app. You then have to remove cache and data of such apps regularly to have a smooth experience.