It is a proper thing to seek medical attention,if you get a muscle twitching more often than usual. Because it could be a sign of something else. And not just twitch.
Also , it is good to avoid too much intake of caffeine, excessive muscle strain in order to avoid a twitch.
Drink lots of water, take time to relax and eat healthy,just like you've mentioned.
Nice post.
Good luck