You should not consume matcha before sleep for the same reasons you would not have an espresso right before bed. It takes time for the caffeine in matcha to wear off, so ensure any matcha you consume is finished several hours prior to sleeping.