Despite the tailgating, your direct actions were to blame for the crash. If you had just pulled in without heavy braking then you would be innocent. Tailgating itself is a rather stupid thing to do.
I can recall two amusing accounts. One was in my youth when I had an amazing car that had such good engine braking that I locked the rear wheels! I was being tailgated by a lady and I changed down, let go of the clutch a bit sudden, the rear wheels locked and I heard her wheels screech as she braked behind. Not once did I apply the brakes while doing that! The car was an old Volvo 360GLT. She just avoided hitting my tow hitch but she stopped tailgating after that!
Another time with another Volvo but actually with the same engine, though a larger car (Volvo 940) and I had an elderly lady in tiny little car so close that all I could see was her face in my mirror of my car! I slwly tried tl reduce speed as I was coming into a 30mph speed limit, so though I was over 30 coming in as I dare not slow down any faster, I remembered about a pair of rather steep and brutal speed bumps. I could not slow down for them as she was so close so I let the old car with its lovely soft suspension hit them at 30mph, which the car took in its stride, but while looking in the mirror while going over the first, I saw her car hit that speedbump and then nosedived, and the sight that met my eyes I remember to this day! I didn't realize she was not wearing her seatbelt (Illegal in the UK) and due to her car suddenly hitting the ground, all I saw was her rather squashed face pressed against the front windscreen with both of her hands also on the screen either side as she had completely been thrown out of her seat and over the steering wheel! Every 30 or 40 mph speed limit area (Some are now 20) she was tailgating but every 50 or 60 mph area she would be staying around 45?
Not wanting more tailgating I pulled in and then gave it a few minutes and carried on.
About eight or ten miles ahead there was a dual carriageway where I was allowed 70mph, so not having much time as we had to get back, I took it up to 70, and saw a small queue of traffic ahead and overtook. As I overtook, at the front of the queue was that lady doing her 45mph, and when she saw me she gave me such a look! It wasn't my fault!. It was HER fault she didn't see that speedbump because she was driving too close! What was she blaming me for?