The condition you are desrcribing can be some immuniological condition of the skin and it is some how aggrevated and causing all this problem.
If you have some history of this type of problem in past than this can be an episode of that condition.
Or other prossibility is that there is some sort of allergic reaction
to something which is causing the skin problem and there is supar added bacterial infection which is aggrevating the condition.
It is only possible to give a proper diagnosis only after proper history and examination and if required some investigations. It is good to know that you are going for biopsy
and hope after that it can be confirmed the cause anf type of the condition.
Thanks and take care.