"He was two days dying."
a. He took two days to die.
b. He had been dying for two days at the time we're speaking of. (Maybe he died days later.)
Is this form used often?
I was two days working at my new job.
It means 'it took him two days to die'. It's not that common, IMO, but you will hear it used, certainly in British English.