I found what the issues was here.
I have some recursive code that does some table setup.
For some reason the table was shown as having a server index, which caused an infinite recursion
Once I refreshed the table in the studio the problem went away