Hi o7
At line 2,903 of KOTC Pathfinding plugin, the code tries to execute "return $KoTCPathMatrix1", I found that simply deleting this line of code stops the crash as well as continuing to work with Yanfly's Region Restrictions.
I don't know if this is advisable by Knight, but it's a working Band-Aid fix so far.