Does this happen when you create a new empty sketch and do something like void setup(){size(1,1);}
?
In other words, is this specific to this exact project, or all of them?
If it’s specific to this project, could you please post the code here so that I could help figure it out?