Wanted to share my experience with something very similar.
I had an AP group with 2 VAPs, each VAP had 1 SSID profile with a different VLAN
the 2nd VAP wouldn't broadcast my SSID. Kept saying "VLAN165 does not exist"
After reading this thread, I did the following.
1. Removed interface vlan 165
2. removed vlan 165
3. re-created both, did not work.
4. removed both, created vlan 199, assigned same IP range as vlan 165, WORKED.
5. removed vlan 199
6, re-added vlan 165, WORKED.
Pulling my hair out for this.
VLAN 165 existed the entire time and "show profile-errors" displayed nothing.