Possible bug, why would this line cause a "Screen position out of view fustrum" error?

So for the last hour I’ve been researching how to fix the the following error:

Screen position out of view frustum (screen pos 761.666626, 770.666626) (Camera rect 0 0 1920 1080)
UnityEngine.SendMouseEvents:smile:oSendMouseEvents (int)

I tried all of the things people said from closing and reopening scene tab, deleting auto generated camera, check camera size/clip plane etc and nothing worked. I found the line of code causing the error but it makes no sense as to why it would cause this error because it has nothing to do with the camera. I don’t have any code in this project that affects the camera behavior and I am using a cinemachine brain attached to my main camera.

void setRigidBodyState(bool state)
    {
        Rigidbody[] rigidbodies = GetComponentsInChildren<Rigidbody>();

        foreach (Rigidbody rigidbody in rigidbodies)
        {
            rigidbody.isKinematic = state;
        }

        GetComponent<Rigidbody>().isKinematic = false; //this line is causing the issues
    }

This method is called in start to set all of my ragdolls rigidbodies to kinematic or not depending on ragdoll state. I don’t want the main rigidbody to ever be set to kinematic in either case which is why that last line is there. Any idea why that line would cause a camera error?

You aren’t changing the Camera.rect property to (0,0,1920,1080) are you?

The max should be (0,0,1,1) - it’s normalized to screen coords

I have not made any changes to the camera at all aside from adding a cinemachine brain to it. Upon further messing with it, it actually seem like it may have something to do with the animator but I’m not sure what yet. When I set kinematic to false so gravity can be applied, the error will pop if the animator is enabled but won’t if it is disabled. Not sure what in the animator would be causing that but I have a character fbx that was exported out of blender with mixamo animations. What I’ve gathered is that it has something to do with the character falling with gravity while animations are playing and that is popping the camera error.

Look at what properties are being animated. Maybe something is having its scale set to zero or something else that results in degenerate math at the matrix level.

I will take look into that