I have a question, please? in case validated creation invoice option on CiviCRM, is there any possibility to use it for the events only, and deactivate it for the membership? Thanks,
To me it sounds as if there has been a similar question with some answers some years ago in this forum:
The latest comments are from 2017/2018. Apparently, there has been a PR for custom invoice IDs, but it appears to be closed without pulling it into core.
However, some workarounds are discussed also. Hope this helps a bit.