If you confuse gender when you speak Spanish, don’t worry about it.
Keep going—most people are used to hearing gender errors from Spanish learners.
Besides, people focus on understanding what you’re saying. For example, if you say “la problema,” people will understand that you meant “el problema.”
I encourage you to keep speaking Spanish. As Spanish teachers, we understand the learning process and are very patient in helping students improve their Spanish.