4o not keeping up with the entire content of the message

Is there a way, tips for fixing the issue of 4o (probably other models do this as well) ignoring information in case of very long messages (15-20k tokens).