TV Shows library update error

2:24pm of the logs attached shows where an error occurred while the media library was being scanned. It scans on a schedule every 2 hours or whenever I manually update the library. A few days ago I began getting an error every time it automatically updates or every time I manually update the library. Image of error attached with logs of last event. If I repeatedly answer yes to continue scanning eventually it will stop, if I answer no and cancel the scan I’m not sure if the library gets updated or not.

KODI v17.1
NextPVR 3.9.2

KODI.logs

ErrorImage