I had the same problem with the new OACS 5.2.2 Installation. I could solve the problem by editing the code in acs-kernel/sql/postgresql/acs-relationships-create.sql .
In line 368 I have changed
create sequence acs_data_links_seq start with 1;
to
create sequence acs_data_links_seq start 1;
It seems that it was a bug, but I am not very familar with coding.