"Be a little more relaxed about this" is probably the best advice haha. I think I just freaked out when I saw their code/had to debug it. But, as @pascalxus said, this is probably very common in many places.
Considering that you will face this probably with your next employer again, deep breath and just enjoy the actual engineering work!