I disagree. She knew prior to the tournament that she had depression/anxiety - and she signed the contract anyway. This would be the equivalent of going in with an existing injury. If I agree to a contract knowing full well that I lack the capacity to fulfil that contract - then I'm the one at fault. If she'd got into the room and she'd had a panic attack, she may have been given a medical exemption, but she didn't. She simply didn't show up.
In the reverse argument, if a tennis player went into the tournament with an existing injury they hadn't disclosed and failed to show up for a match, they would be fined for a code violation. They would need a medical exemption before their contractual obligations (the match) begin - they can't fail to show up and then when asked what happened say 'my leg hurts'. This would be a breach of contract.
I think it's a very pivotal moment and I hope this is something that changes for young tennis players and indeed young actors too. Conversations about mental health need to happen - but that must cut both ways, poor mental health is not carte blanche to avoid responsiibility for things you don't want to do. I don't think for a second that's what Osaka is doing here, which is why I'm glad she's left - but I can see it being used as such in the future and becoming a confusing and mismanaged weapon that will cause lots more problems than it solves.