Hey! Yes, PS5 games generally need to be installed on the internal SSD (or an officially supported external SSD) due to the speed requirements of the console. If the game you're trying to install is PS5-native (not a PS4 version), it usually won’t work from a standard external HDD.
By the way, if you're juggling tech stuff like this and also working on a Java assignment, it might be worth getting a bit of help to save time. Depending on what you're more comfortable with—Python for ease or Java for structure—there are reliable java assignment help services out there that can support you. Makes life a bit easier when you’re trying to balance everything!
Let me know if you need game install tips or study help.