It is not a sin to strive for glory, it is a sin to fall short of the glory of God.
Romans 3:23
For all have sinned, and come short of the glory of God;
So, you can sin by striving for a lesser glory, whether you reach it or not. If you fall short of that glory, it is not necessarily an additional sin, but it could be. If you shoot at the wrong target, you will not hit the right one, but you still might miss the wrong one.
You can sin by striving for a different glory.
You can sin by obtaining a lesser glory.
You can sin by falling short of the glory of God.
So, if you are aiming at the glory of God, the problem is not the direction you are trying to go, but the fact that you cannot get there. It is not that you are shooting at the wrong target, it is that you cannot hit the right target.
But Christ hit the target, dead center. He lived the righteous life we ought to have lived. He never missed the mark and always hit the target. Through Him the world is going to be baptized by His success. His glory is going to fill everything. The glory He obtained is going to be shared with the world until nothing no longer comes up short.
Habakkuk 2:14
For the earth shall be filled with the knowledge of the glory of the LORD, as the waters cover the sea.
So go for the glory.
In Christ, our aims are made straight and true.
1 Corinthians 10:31
Whether therefore ye eat, or drink, or whatsoever ye do, do all to the glory of God.