==============================
Rom 3:23
23 for all have sinned and fall short of the glory of God,
=================================
The next verse, verse 24, did you notice?
"Being justified freely by His grace through the redemption which is in Christ Jesus." (Rom. 3:24)
Rather than me seeing "God is going to torment be forever because I am not perfect." I see "God has justified me freely through the redemption which is in Christ."
The verse after that, verse 25, says Whom [Christ] God set forth as a propitiation place through faith in His blood, for the demonstration of His righteousness ..."
This Person Christ is a propitiation place, a realm, a place where His righteousness is demonstrated before God. Within the Person, in that place, that propitiation place, I am justified. Christ Himself is my perfection before God.
While you look at that passage and see "God wants to torment me because I have committed the crime of not being perfect" I see "God will justify me by accounting Christ Himself as my perfection freely, through faith."
It seems that you are sitting down to a turkey dinner and hunting for a bone to choke on.
==========================================
Rev 3:2-5
2 Be watchful, and strengthen the things which remain, that are ready to die, for I have not found your works perfect before God.[a] 3 Remember therefore how you have received and heard; hold fast and repent. Therefore if you will not watch, I will come upon you as a thief, and you will not know what hour I will come upon you. 4 You [ b] have a few names even in Sardis who have not defiled their garments; and they shall walk with Me in white, for they are worthy. 5 He who overcomes shall be clothed in white garments, and I will not blot out his name from the Book of Life; but I will confess his name before My Father and before His angels.
=======================================
That passage has nothing at all about eternal torment. It only talks about the reward of having Christ confess the name of the believer before His Father.
Any blotting of the name out of the Book of Life can not be permanent. It can only be temporary. Because He cannot deny Himself that He has regenerated such a person to be a son of God.
"If we endure, we will reign with Him; if we deny Him, He also will deny us; If we are faithless, He remains faithful, for He cannot deny Himself,: ( 2 Timothy 2:12,13)
Here you should clearly be able to see, that if the disciple of Jesus is faithless and denies his Lord, the Lord may deny him in turn. However, He remains faithful because He cannot deny Himself. He has saved that one eternally and caused him to be born of God as the Father's child, albiet a child in need of discipline.
Such discipline will be to temporarily erase his name from the book of life. He will not enjoy the reward of the coming kingdom. But he will be saved eternally as through fire:
"If anyone's work which he has built upon the foundation remains, he will receive a reward;
If anyone's work is consumed, he will suffer loss, but he himself will be saved, yet so as through fire." (1 Cor. 3:14,15)
The disciple whose name is erased from the book of life is the disciple who suffers loss. He receives no reward. He is disciplined by being saved, yet so as through fire.
After this temporary time of discipline and loss that faithless disciple will also be perfected. Everyone who is saved cannot postpone indefinitely being perfected before the eternal age begins. In fact all those who believe into Christ, Christ is able to present them perfected before His Father eventually:
"Even as He chose us in Him before the foundation of the world to be holy and without blemish before Him in love" (Eph. 1:4)
=============================================
Rev 20:12-15
12 And I saw the dead, small and great, standing before God,[c] and books were opened. And another book was opened, which is the Book of Life. And the dead were judged according to their works, by the things which were written in the books. 13 The sea gave up the dead who were in it, and Death and Hades delivered up the dead who were in them. And they were judged, each one according to his works. 14 Then Death and Hades were cast into the lake of fire. This is the second death.[d] 15 And anyone not found written in the Book of Life was cast into the lake of fire.
========================================
That scene occurs one thousand years at least after the reward and punishments are given by Christ to His redeemed people. See Revelation chapter 20. So if one thousand years earlier an immature disciple had his name erased from the book of life. But this time it has been written back in at the grewat white throne judgment before the eternal age - one thousand years at least after the millennial kingdom reward.
For example, the name of the tribe of Dan was temporarily dropped from the name of the twelve tribes of Israel. In the account of Revelation 7:4-8 as well as 1 Chron. 5:1-2 the tribe of Dan was omitted because of its idolatry (Judges 18:30-31; 1 Kings 12:29-30; 2 Kings 10:29; compare to prophecy Gen. 49:17) However, though Dan's name was erased from the list of the twelve tribes in Revelation 7:4-8, Dan will still be counted during the millennial kingdom (Ezek. 48:4-5)
Just as Dan's name was temporarily erased from the divine record and placed back in again, so will God temporarily erase the names of some uncooperative disciples of Jesus and latter write again their names in the book of life. In such a way He fulfills His promise - "and they shall by no means perish forever" (John 10:28)
"For by grace you have been saved through faith,and this not of yourselves; it is the gift of God" (Eph. 2:8)
The verse you have mentioned regards reward (1 Cor.3:14,15) not gift (Eph. 2:8). The gift cannot be lost. The reward in the coming millennial kingdom can be lost.
At best your view that "God wants to torment me forever because I have commited the crime of not being perfect" is kind of warped, not taking into account His extending of His perfect Son to be our needed righteousness before Him.