There are 2 related issues , depends when are you facing this issue , based on that you have to do the solution
FOR DBT-50000 Error - Unable to check for available memory :
dbca.bat file is available in bin folder of your installation , if you run this file by right clicking - selecting run as administrator this will work .
FOR INS-35180 - Unable to check for available memory :
Also , For your information , you might face this issue during installation , and not while setting up your DB by running DBCA, then you will have to check if your PC name is > 15 characters , if so change name to have less then equal to 15 characters to solve this issue
For Me i was facing this issue while doing normal setup for Oracle Database 19c , and renaming your PC name did work for me . the issue can be understand as below -
In my case this was a permissions issue on the Oracle Home directory. If your Windows PC name is >= 16 characters in length, the name of the administrators group is affected, because only the first 15 characters are included. The mismatch between that first part of the name and the full name is what was causing the issue. DESKTOP-ASUS-ROG vs. DESKTOP-ASUS-RO in my case (notice the missing G). I renamed the PC to DESKTOPASUS, restarted the machine, and it worked without issue. The name discrepancy was apparent when looking at the security configuration of the folder when my system name was over max.
You can get your PC name by running hostname from the command line. If it's >= 16 characters, rename the PC to be <= 15 characters, and restart.
The underlying issue is indirectly discussed here in a different context: https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/naming-conventions-for-computer-domain-site-ou
Maximum name length: 15 characters.