Guava tree roots

what can be done to prevent this?

It may be Fusarium wilt or nematodes. most of the time symptoms of fusarium wilt.
Apply Trichoderma vhiridi @2 kg + pesudomonas @2 kg/200 liter of water. and apply 500ml-1 liter/tree near the root zone of the plant.