Unfortunately Kodi has stopped working

While watching video,it is fine.But when I go from one video/site to an other video/site, I get code””Unfortunately Kodi has stopped working””.When I click ok it goes back to mail screen.Kindly help me.It is Kodi 16.1 and Android 6 on
M96X-AMLOGIC S905X-upgraded-A53. ANDROID 6.0 -Model M96X- 64Bit