I get much less anxious and I sleep better(longer and with less interruptions) with one to max two beers in the later afternoon but not right before sleep. Going over that amount or drinking right before bed and my sleep quality goes off the cliff, so careful dosing and timing seems key, along with drinking plenty of water during, to hydrate yourself so your liver and kidneys don't run "dry" as they process the alcohol out of your system. Binging on alcohol on a boozy night out is obviously terrible for my sleep and messes me up for two days straight.
This is obviously not medical advice or encouragement to self medicate with beer, just something that I noticed on my own 30's male body.