It could do with your eyes.
You need a dilated fundus and posterior segment examination.
It might be just an inflammed eye which causing all the pain. Any pain of eye can be that excruciating.
But the fact you mentioned about brown floaters
, I would preferred yu be screened by an ophthalmologist.