Welcome to healthcare magic
As per your description you are preoccupied with some thoughts (dreams in your case) all the time which is hampering your daily routine...
You probably have obsessions of some kind which requires a psychiatric consultation
With adequate treatment in form of medication/psychotherapy
, I am sure that you will be fine.