Your symptoms of sudden weakness, sweatiness which improves with food is very suggestive of low blood sugar level, known as hypoglycaemic attacks. This due to various causes including pre-diabetic state. I am unable to connect this with lack of sleep. You need to have your blood tested for insulin levels at different times of the day as well as other tests, if only to exclude various causes. It is important that you consult an appropriate specialist.