Unless you really need nougat (CE ROM), stay with Marshmallow (android 6).
To solve your problem try this :
Fresh kodi installation
But give us more details:
Example:
-if it happens with all the files you have or just some
-streaming from external hdd or NAS
-Are you using database libray ?
-What kodi build are you using?
Etc...
kodi 18.9 is the recommended build you should install.