Gradually reduce your caffeine intake instead of immediately discontinuing caffeine use. Substitute coffee with other drinks.

https://recoverypartnernetwork.com/drug/stimulants/caffeine-addiction