I have this laptop https://support.hp.com/us-en/document/c05987723 and this error is happening to me as well on 18w50a, apparently is caused by having a dual core CPU from what others on a similar thread have said, the reason is that the method MC is using to create the game threads uses the number of cores -1 which means that if you have a dual core CPU all the threads try to get shoved onto 1 core which doesn't really work obviously. 1.13 doesn't have this issue for me since I guess it doesn't use that method but everything over 1.13.1 does 🙂 So basically I guess everything after 1.13 requires a 4 core CPU at minimum, RIP my $300 I spent a couple of months ago I guess
@Lord_kalex apparently it doesn't only happen for pcs and laptops that are "too old", it seems like it happens to any new or old PC as long as it has low enough specs, I would know since I am having this exact issue on this laptop that I bought a couple of months ago so it is new https://support.hp.com/us-en/document/c05987723, I didn't have much money at the time so its all I could buy but I figured it would at LEAST run lower end games like MC, but nope, I am getting the exact same OutOfMempry error about not being able to create enough native threads on 18w50a. It is 64 bit but has a dual core CPU so I assume that is the issue. I didn't know MC would require a 4 core cpu, guess I am stuck playing 1.13 for a while ;~;
Actually, disregard that, I found what the problem was for me, I realized that I was using 32 bit Java and not 64 bit so I downloaded and installed the latest 64 bit Java (191f) and now i18w50a works 😃 Now I just need to get the newest version of forge for this version (if there is any yet) so I can use optifine to get slightly better FPS