If you are facing specific errors during installation, tell me you see on your screen. I can also help you figure out which version number you need to look for if you share the model of your device. Share public link
Find the specific legacy versions of the individual apps you need on APKMirror, download them to your computer, and install them directly onto the device via USB. To help find the right files, let me know: What is the brand and model of your old Android device?
: Many core Google services and modern apps now require Android 6.0 or higher to function, leading to frequent "Server Error" or "No Connection" messages on 4.2.2 devices. Market Share : Devices running Jelly Bean account for less than of global Android traffic. APK Management & Updates
Since you are installing an app from outside the official store, you need to permit it.
Android 4.2.2 corresponds to API Level 17. Modern Google Play Store APKs require API Level 19 (Android 4.4) or higher. If you download the newest Play Store APK, it will fail to parse or crash instantly.