It's my first post here. What's more I'm not car experts so please be patient if I ask silly questions or so

A few months ago I left my C4 in service to replace a turbo charger. Same time it appead a ABS/ESP unit had broken. They order a second-hand which didn't operate so order another with same result. Thinking that was no ABS/ESP unit they started to troubleshoot failure making it much worse. Finally car went to another service who brought it to operate (by replacing another ABS/ESP plus some other activities to fix damages made by predecessors). Finally I got my car back but with some errors (which both workshops can't fix). Problem is with EPB: just after engine is off automatic break is activated (that's ok). But then a few seconds after BSI goes to sleep mode a relay click (don't know which, just hear "somethink click" most likely in PSF box) and they a electronic break is slightly released. Service indication/auto parking/parking indicators goes ON. There are two diagnostic codes: U1313 and U2219 (I can't translete these clearly to english).
Good point in all that issue is this malfunction can be "easly fixed" but put a ignition switch to ON->OFF->ON position. What's more where engine is ON electronic brake pull back what was relesed before.
As I was informed a EPB was recalibrated after ABS/ESP unit repleacement.
Can anybody give me advise what can be a reason of such behavior? Could it be a incompatibility of replaced ABS/ECU unit? A wireing? Wrong parameters on ABS/ECU?
Could somebody share a diagnostic code descriptions with possible root casue and troubleshooting tips?
As I worte at top of that post: I'm not car expert but would know where to start digging since a help form sevice workshops is little and don't want to leave another guys my car for months...
Darek