Deb
Welcome to the forum, you might want to have a look at the following FAQ which explains where everything is
Welcome to Benefits and Work I'm afraid I cannot give you a definitive answer.
Taking more than $8000 will mean that your ESA will be reduced at the rate of £1/week for every £250 in excess of £6000.
Paying off a loan early may be considered as Deprivation of Capital, the Decision is at the discretion of a DWP Decision Maker, they may accept the high interest rate as good reason for the early clearing of the debt but if they don't then you will be considered as still being in possession of the £8000 and deductions will continue.
My best advice is for you to get face to face advice from a trained Welfare Rights advisor, they will have a better idea of how the DWP will view the money and more importantly can act on your behalf with the DWP. Do an internet search for "welfare advice" with your postcode, town or county.
Gordon