As a guitarist, I often have to come up with solos. When playing on a song with vocals, I follow one simple rule: the shorter the solo, the better.
In a vocal song, a guitar solo is only there to offer a brief shift in attention. The singer is the central figure, and the arrangement should keep the focus on them. When a solo runs longer than necessary, it often becomes tempting to fill the space with flashy playing. This can draw attention away from the singer and disrupt the overall structure and flow of the song.
I have often found that shortening a solo allows me to play something that better suits the song. When I consider what to leave out, the melodies that survive fit the mood and chord progression more naturally. When I am asked to play a sixteen-bar or eight-bar solo, the first thing I do is to check whether it can be cut down to eight or four bars.
Separately, if there is a wind instrument in the band, such as a saxophone, I usually leave the solo to that player. I believe that instruments that rely on breath often carry emotion and intention more directly than stringed ones.
For me, a guitar solo is something to shorten or avoid whenever possible. When I do have to play one, the goal is to make those few bars count.