Need Help Determining Where Header Error is Happening

I figured out what the problem was. In the end, I added &noheader=true to my form action. This allowed me to submit my own headers without calling the WP admin headers.

error code: 523