Identify when the error appears
If the message appears as soon as you start the search, return to mode selection and check the maps. Choose a mode you have queued for successfully and select available maps again where the mode allows it.
Compare solo and party matchmaking
Create a fresh lobby and try starting the search alone. If it starts, cancel before accepting a match and invite your friends again. Check whether each player can access the chosen mode. Steam lists Prime and Profile Level 10 as Premier requirements, so confirm eligibility when comparing it with Competitive.
Record what you can reproduce
If the error persists in a fresh lobby, save the full message, mode and selected maps. If the search starts but CS2 errors after you accept the match, record that separately. In that case, check the connection to the assigned server.