Can't rebuild due to theme errors

have you tried Safe mode ?

mysite.com/safe-mode