It sounds like your son may be experiencing a manic episode, which is a symptom of bipolar disorder. During a manic episode, individuals may exhibit a range of behaviors, including rapid speech, jumping from one topic to another, increased energy levels, grandiosity, impulsivity, and sometimes a reduced need for sleep.
The specific content of his speech about codes and virtual reality life may be related to his personal interests or thought patterns during the episode. However, it's essential to remember that each individual's experience with bipolar disorder can vary, and not everyone will exhibit the same symptoms during a manic episode.
It's crucial that your son is receiving medical attention and professional care while he is in the hospital. The healthcare professionals there will be able to assess his condition and provide appropriate treatment, which may include medications and therapy.
If you have questions or concerns about your son's condition, it's best to speak directly with his healthcare team, as they can provide you with specific information about his situation and offer guidance on how to support him during this time. Mental health conditions can be challenging, but with proper treatment and support, many individuals can manage their symptoms and lead fulfilling lives.