Unfortunately, bleach can damage the backing and underlayment of the carpet, especially when you use it directly without diluting. It can also irritate your skin and eyes if you breadth it for a long time.
A higher concentration of bleach is extremely harmful to carpets, but the good news is you can reverse its damage with a few cleaning processes. Phew!
Use Dishwashing Liquid: Dishwashing liquid is a highly-foaming mixture that cleans dishes, glasses, and other cooking essentials. Other than hard materials, it can also un-soil a soft wall-to-wall.
Use White Vinegar: The acetic property of white vinegar dissolves any stubborn stain, grime, and grease, whether it be of wine or bleach.
After ensuring that the bleach stain has vanished completely, check whether your carpet has any discolored patches or not. If there is any, then take a crayon or a paint that matches the color of your rug.