I am self employed, a job I did required me to do thousands of hours over what I charged, is this a write off?

I am self-employed, Single Member LLC, I majorly underbid a job and still isn't complete required me to do thousands of hours over what I estimated over 8 months, is this a write off in any way? I could not work on other projects for around 6 months but also didn't get paid for the work. Thanks in advance.