A failed state is one with a weak government unable to provide basic needs, where corruption is rampant and where the state is unable to defend its borders and territories, among others.
As for Malaysia: “Malaysia’s investments in ports, airports, roads and other basic infrastructure have ... AI semiconductor chip manufacturing, drawing major firms like Intel and Micron.