I bought a cage for 2 lovebirds but now in youtube videos it is said that such cages are too small for them. So now does it become haram to keep them in this cage? They are doing fine if I see but obviously a bigger cage will be better for them but is it wajib to shift them to a bigger cage?

No. It is not wajib, but it is better.