Q.A yucca plant
It has 4 leafing branches, 2 of which are fine but the other 2 appear to be wilting and have softer stems.
It sounds as if the Yucca is unhappy in it's growing conditions.
Full sun and dry soil are key factors.
Watering should only be when the top 3 inches of soil are dry.
Water should not hit the leaf branches.
Also good air circulation will help in plant health.
A stressed and overly watered can become diseased with fungus or insects.
Allow the plant to dry. You can apply a fungicide and treat with Neem Oil if any signs of insects.
Here are some links for you.
https://www.gardeningknowhow.com/plant-problems/pests/pesticides/neem-oil-uses.htm
https://www.gardeningknowhow.com/ornamental/foliage/yucca/caring-for-and-landscaping-with-yuccas-outdoors.htm