com.google.android.gms is Google Mobile Services ( GMS ) is a collection of Google applications and APIs that help support functionality across devices.
Standard cautions apply. Depending on where you got the APK files they may or may not be safe. Generally it would be better to fix your play store issue than try to do an end run around it.