So after using a custom rom for a few days, I really wanted to go back to the stock rooted rom. Here is my procedure. Maybe some of the steps were unnecessary, but in the end it worked. No more reboots!
I first went into twrp and wiped cache and dalvik cache. Then I did a factory reset. Then used Odin to load the stock rom. Went into stock recovery and did another factory reset. Then went thru the process of installing the updates. After the updates I rooted then did another factory reset and cleared cache. I had a random reboot shortly after that when I was restoring everything on the tablet. . But that was over 7 hours ago. No more reboots!