Hmmm. Last year was 2019. Your computer is a 2017 model which made it two years old when you bought it?
Please read Writing an effective Apple Support Communities question. We are here to help. We are all users. We are not mind-readers nor clairvoyants. We only know what you write down and tell us. Be specific and thorough. Include your hardware information and installed version of macOS. Try to write clearly. Think about what you want to say before you write it down, then re-read it to see if it makes sense.
Here is a solution passed on by another user:
1. Shut the computer down by holding the power button for 10 seconds
2. Restart the computer and press shift at the same time until you see the progress bar start moving
3. Once you reach the point where your screen goes dark and you see the cursor, type the first letter of the username for your computer, then hit Enter, then type your password, then hit Enter.
4. After a moment, you should see the spinning beach ball
5. Your screen should then move on to something along the lines of "Completing OSX Installation" (I can't remember the exact wording). Let it finish. After that it should go to your normal desktop and the issue should be fixed. (If your screen goes pitch black during this process, hit the space bar. I thought it wasn't working, but the screen was just sleeping).
Apparently it's an issue with an automatic update that never quite got past the login screen.