Will there be any consequences in the afterlife if I commit suicide?
NO!
But this is my understanding.. just cause you commit suicide (if you get that far..) doesn't mean you'll end up right back here.. only when the veil is revealed will you be presented with what you agreed to do here.. you will once again be offered a choice to continue.. it's quite possible you'll be back..
Here are some of the facts about suicide as I understand it..
"Many of us have already died many times.. and have returned.. obviously mostly with a tinge of forgetfulness in there.." my teacher says if you had a experience where you said to yourself "I could have almost died" you probably did
"All deaths are suicides" you don't need to perform the physical act.. you can use LOA to be hit by a bus or your own thoughts to leave.. you just have to go about it the right way..
There is no judgment in higher perspectives.. what was done here you are not judged for.. you will just have a conversation/experience about your life when you die
Also watch out for "EGO" based ideas about suicide.. which are judgment about the act in a negative way.. it is my understanding that this is hell, where you going is very beautiful

Word of warning again.. doesn't mean you won't be back, hopefully you can come back with a tad of a attitude adjustment or appreciation for life.. for there is much to appreciate..