Lacking the mental competence to stand trial is a valid legal claim under the law and has been for a very long time.
The defense does have to prove it though.
WHAT AN AMAZING DOUBLE STANDARD:
TOO senile to stand trial for transgressions of 50 +++ years, but still in charge of the USA, CIC, and ‘the football’.