I think it comes from なる, so you can read it as こうなれば - which I understood as “If thats how it is”
れば changes to りゃ.
When looking this up to not give you wrong information, I found this forum post which this Contraction is covered in.
Hope this helps!